package com.twu.biblioteca.model;

public abstract class Title {

    private int id;
    private boolean available;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public boolean isValid() {
        return  getId() > 0 ? true : false;
    }

}
